﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeHouse.Server.Dto;
using LeHouse.Server.Dal;
namespace LeHouse.Server.Service
{
    public class Collateral_PersonalService : BaseService<Collateral_Personal>
    {
        protected override GenericBaseDAL<Collateral_Personal> Dal
        {
            get { return new Collateral_PersonalDAL(); }
        }
        /// <summary>
        /// 创建用户信息表（抵押物权益状况）  登记记录的BLL
        /// </summary>
        Collateral_PersonalDAL dal = new Collateral_PersonalDAL();

           /// <summary>
        /// 资产登记的数据添加
        /// </summary>
        /// <param name="parms"></param>
        /// <returns></returns>
        public bool PersonalOrBorrowerInsertOrUpdate(PersonalOrBorrower parms)
        {
            return dal.PersonalOrBorrowerInsertOrUpdate(parms);
        }

        /// <summary>
        /// 项目号递增
        /// </summary>
        /// <returns></returns>
        public string SortReportNumber()
        {
            return dal.SortReportNumber();
        }

        public Jointshow selectbyid(string P_ReportNumber)
        {
            return dal.selectbyid(P_ReportNumber);
        }
        /// <summary>
        /// WAP 端请求模糊查询地址
        /// </summary>
        /// <param name="P_located"></param>
        /// <returns></returns>
        public List<Collateral_Personal> searchbyP_located(string C_project)
        {
            return dal.searchbyP_located(C_project);
        }
        /// <summary>
        /// 根据报告号去查约没约到加载显示
        /// </summary>
        /// <param name="P_ReportNumber"></param>
        /// <returns></returns>
        public Collateral_Personal selectbyP_ReportNumberss(string P_ReportNumber)
        {
            return dal.selectbyP_ReportNumberss(P_ReportNumber);
        }

    }
}
